<?php
namespace app\api\controller;
use app\common\controller\ApiBase;
/**
 * @title 测试demo
 * @description 接口说明
 */
class Index extends ApiBase
{
    /**
     * @title index
     * @description index
     * @author Admin
     * @url /api/index/index
     *  2018/9/18  9:11
     * @return string:数据展示
     */
    public function index()
    {
        $key = $this->request->param('key');
        if ($key == 'mima'){
            $this->success('url:https://blog.csdn.net/qq_35349114/article/details/80207849');
        }
    }


    /**
     * @title test
     * @description test
     * @author Admin
     * @url /api/index/test
     * @time 2018/9/18  9:11
     */
    public function test(){
        $this->success('skdfj');
    }
}
